package main

import (
	grpc2 "google.golang.org/grpc"
	"self/common/consul"
	"self/common/grpc"
	"self/common/initiailze"
	"self/common/nacos"
	"self/common/viper"
	"self/service/internal"
)

func main() {
	viper.GetViper()
	nacos.Nacos()
	nac := nacos.NacosConfig
	consul.Consul()
	initiailze.MysqlInit()
	initiailze.RedisInit()
	grpc.RegisterGrpc(nac.Grpc.Host, nac.Grpc.Port, func(server *grpc2.Server) {
		internal.Register(server)
	})
}
